package com.zs.blog.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zs.blog.model.dto.AuthorityDTO;
import com.zs.blog.model.entity.Authority;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Title: IAuthorityMapper
 * @Author zs
 * @Package com.zs.blog.dao
 * @Date 2025/9/2 21:21
 * @description: 系统资源权限映射接口
 */
public interface IAuthorityMapper extends BaseMapper<Authority> {

    List<AuthorityDTO> listAuthorityWithPagination(IPage<AuthorityDTO> page, @Param(Constants.WRAPPER) QueryWrapper<Authority> qw);

    List<AuthorityDTO> listAuthorityBySearchCondition(@Param(Constants.WRAPPER)LambdaQueryWrapper<Authority> lqw, IPage<AuthorityDTO> page);
}
